using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace InvoiceProject.Models
{
    public class InvoiceProjectContext : DbContext
    {
        // You can add custom code to this file. Changes will not be overwritten.
        // 
        // If you want Entity Framework to drop and regenerate your database
        // automatically whenever you change your model schema, add the following
        // code to the Application_Start method in your Global.asax file.
        // Note: this will destroy and re-create your database with every model  change.
        public InvoiceProjectContext() 
    {
        System.Data.Entity.Database.SetInitializer(new DropCreateDatabaseIfModelChanges<InvoiceProjectContext>()); 
    }
        public DbSet<InvoiceProject.Models.Address> Addresses { get; set; }
        public DbSet<InvoiceProject.Models.Business> Businesses { get; set; }
        public DbSet<InvoiceProject.Models.Invoice> Invoices { get; set; }
        public DbSet<InvoiceProject.Models.InvoiceItem> InvoiceItems { get; set; }
        public DbSet<InvoiceProject.Models.Customer> Customers { get; set; }

        public DbSet<InvoiceProject.Models.Quote> Quotes { get; set; }
    
    }
}